using System;
using System.Collections;
using System.Collections.Generic;

using NHibernate.Data.Base;

namespace NHibernate.Data.Models
{
    public partial class Winery : BusinessBase<long>
    {
        #region Declarations

		
		private long _address = default(Int64);
		private long _introduction = default(Int64);
		private long _weather = default(Int64);
		private long _classification = default(Int64);
		private long _corporation = default(Int64);
		private long _localName = default(Int64);
		private string _internationalName = String.Empty;
		private string _postcode = String.Empty;
		private decimal _longitude = default(Decimal);
		private decimal _latitude = default(Decimal);
		private string _imageA = String.Empty;
		private string _imageB = String.Empty;
		private string _imageC = String.Empty;
		private string _imageD = String.Empty;
		
		
		
        #endregion

        #region Constructors

        public Winery() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_address);
			sb.Append(_introduction);
			sb.Append(_weather);
			sb.Append(_classification);
			sb.Append(_corporation);
			sb.Append(_localName);
			sb.Append(_internationalName);
			sb.Append(_postcode);
			sb.Append(_longitude);
			sb.Append(_latitude);
			sb.Append(_imageA);
			sb.Append(_imageB);
			sb.Append(_imageC);
			sb.Append(_imageD);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual long address
        {
            get { return _address; }
			set
			{
				OnaddressChanging();
				_address = value;
				OnaddressChanged();
			}
        }
		partial void OnaddressChanging();
		partial void OnaddressChanged();
		
		public virtual long Introduction
        {
            get { return _introduction; }
			set
			{
				OnIntroductionChanging();
				_introduction = value;
				OnIntroductionChanged();
			}
        }
		partial void OnIntroductionChanging();
		partial void OnIntroductionChanged();
		
		public virtual long Weather
        {
            get { return _weather; }
			set
			{
				OnWeatherChanging();
				_weather = value;
				OnWeatherChanged();
			}
        }
		partial void OnWeatherChanging();
		partial void OnWeatherChanged();
		
		public virtual long Classification
        {
            get { return _classification; }
			set
			{
				OnClassificationChanging();
				_classification = value;
				OnClassificationChanged();
			}
        }
		partial void OnClassificationChanging();
		partial void OnClassificationChanged();
		
		public virtual long Corporation
        {
            get { return _corporation; }
			set
			{
				OnCorporationChanging();
				_corporation = value;
				OnCorporationChanged();
			}
        }
		partial void OnCorporationChanging();
		partial void OnCorporationChanged();
		
		public virtual long LocalName
        {
            get { return _localName; }
			set
			{
				OnLocalNameChanging();
				_localName = value;
				OnLocalNameChanged();
			}
        }
		partial void OnLocalNameChanging();
		partial void OnLocalNameChanged();
		
		public virtual string InternationalName
        {
            get { return _internationalName; }
			set
			{
				OnInternationalNameChanging();
				_internationalName = value;
				OnInternationalNameChanged();
			}
        }
		partial void OnInternationalNameChanging();
		partial void OnInternationalNameChanged();
		
		public virtual string Postcode
        {
            get { return _postcode; }
			set
			{
				OnPostcodeChanging();
				_postcode = value;
				OnPostcodeChanged();
			}
        }
		partial void OnPostcodeChanging();
		partial void OnPostcodeChanged();
		
		public virtual decimal Longitude
        {
            get { return _longitude; }
			set
			{
				OnLongitudeChanging();
				_longitude = value;
				OnLongitudeChanged();
			}
        }
		partial void OnLongitudeChanging();
		partial void OnLongitudeChanged();
		
		public virtual decimal Latitude
        {
            get { return _latitude; }
			set
			{
				OnLatitudeChanging();
				_latitude = value;
				OnLatitudeChanged();
			}
        }
		partial void OnLatitudeChanging();
		partial void OnLatitudeChanged();
		
		public virtual string ImageA
        {
            get { return _imageA; }
			set
			{
				OnImageAChanging();
				_imageA = value;
				OnImageAChanged();
			}
        }
		partial void OnImageAChanging();
		partial void OnImageAChanged();
		
		public virtual string ImageB
        {
            get { return _imageB; }
			set
			{
				OnImageBChanging();
				_imageB = value;
				OnImageBChanged();
			}
        }
		partial void OnImageBChanging();
		partial void OnImageBChanged();
		
		public virtual string ImageC
        {
            get { return _imageC; }
			set
			{
				OnImageCChanging();
				_imageC = value;
				OnImageCChanged();
			}
        }
		partial void OnImageCChanging();
		partial void OnImageCChanged();
		
		public virtual string ImageD
        {
            get { return _imageD; }
			set
			{
				OnImageDChanging();
				_imageD = value;
				OnImageDChanged();
			}
        }
		partial void OnImageDChanging();
		partial void OnImageDChanged();
		
        #endregion
    }
}
